﻿<Window x:Class="BBInterfaceNET.Designer.Views.AddFieldView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AddFieldView" MinWidth="300" SizeToContent="WidthAndHeight">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="Field Type:" Margin="2" VerticalAlignment="Center"/>
        <ComboBox Grid.Column="1" Margin="2"
                  ItemsSource="{Binding Path=Items}"
                  SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Description}"/>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <StackPanel Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Right"
                    Orientation="Horizontal" Margin="2">
            <Button Content="Ok" Padding="5,2" Margin="1" IsDefault="True"
                    Click="btnOk_Click"
                    />
            <Button Content="Cancel" Padding="5,2" Margin="1" IsCancel="True"
                    Click="btnCancel_Click"
                    />
        </StackPanel>
    </Grid>
</Window>
